
<%= error_messages_for 'user' %>

<div class=input>
<table class=input>
<tr>
<td><label for="user_name"><%='Last Name'.t%>:</label></td>
<td><%= text_field 'user', 'last_name', :size => 20  %></td></tr>

<tr><td><label for="user_name"><%='First Name'.t%>:</label></td>
<td><%= text_field 'user', 'first_name', :size => 20  %></td></tr>


<tr><td><label for="user_name"><%='User Name'.t%>:</label></td>
<td><%= text_field 'user', 'username', :style =>'width:200px'%>*(<%='MUST'.t%>)</td></tr>

<tr><td><label for="user_password"><%='Password'.t%>:</label></td>
<td><%= password_field 'user', 'password',:style=>'width:200px'%>*(<%='MUST'.t%>)
</td></tr>
<!--
<tr><td><label for="user_name"><%='SN'.t%></label></td>
<td><%= text_field 'user', 'sn', :size => 40  %></td></tr>
-->

<tr><td><label for="user_name"><%='Email'.t%>:</label></td>
<td>
   <%=text_field 'user', 'email', :size => 40  %>
</td></tr>
<tr><td><label for="user_name"><%='Projects'.t%>:</label></td>
<td>
<%@cur_user.company.projects.each do |p|%>
  <%=check_box_tag "project_ids[]",p.id,true,:class=>'all'%><%=p.name%>
<%end%>
</td></tr>
<tr><td><label for="language"><%='Language'.t%>:</label></td>
<td><%= select 'user','lang',LANGTYPES%>
</td></tr>

<!--
<tr><td><label for="user_name"><%='Default Start Time'.t%></label></td>
<td><%# select_hour_min @work_start_time,:prefix=>'work_start_time'%></td></tr>

<tr><td><label for="user_name"><%='Default End Time'.t%></label></td>
<td><%# select_hour_min @work_end_time,:prefix=>'work_end_time'%></td></tr>

<tr><td><%='User information'.t%></td>
<td><%# text_area 'user', 'general_info',:cols=>60,:rows=>4  %></td></tr>
-->
</table>
</div>
